<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<s:form id="recomm_book_form" namespace="/control/mapping" action="book_recommBookMap">
	<table>
		<thead>
			<tr>
				<td colspan="6">
					<font>当前页:第${view.currentpage}页 | 总记录数:${view.totalrecord}条 | 每页显示:${view.maxrecord}条 | 总页数:${view.totalpage}页</font>　
					<br/>
					<s:iterator begin="view.pageindex.startindex" end="view.pageindex.endindex" var="pageIndex">
						<s:if test="view.currentpage==#pageIndex">
							<b><font color="#00ffff">${pageIndex}</font></b>
						</s:if>
						<s:else> 
							<s:url action="bbs_discuss" namespace="/forward/view" id="discussList">
								<s:param name="bookid" value="bookid"/>
								<s:param name="page" value="pageIndex"/>
							</s:url>
							<a href="#">[${pageIndex}]</a>
						</s:else>
					</s:iterator>
				</td>
			</tr>
			<tr>
				<td>选择</td>
				<td>名称</td>
				<td>图片</td>
				<td>单价</td>
				<td>店铺名称</td>
				<td>书籍类别</td>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="view.records" var="_book">
				<tr>
					<td><input type="checkbox" name="ids" value="${_book.id}" title="checkedName"/></td>
					<td>${_book.bookName}</td>
					<td>
						<div style="width: 80px;height: 80px;overflow: hidden;">
							<img alt="" src="${_book.logo_300}" width="80" height="80">
						</div>
					</td>
					<td>${_book.price}</td>
					<td>${_book.shop.shopName}</td>
					<td>${_book.parent.name }</td>
				</tr>
			</s:iterator>
		</tbody>
		<tfoot>
			<tr>
				<td>
					<input type="checkbox"  id="allCheckBox" onclick="selectAll()"/>全选
				</td>
				<td>
					<input type="reset" value="取消" onclick="resetAll()"/>
				</td>
				<td>
					<input type="hidden" name="ftlName" value="${ftlName }"></input>
					<input type="hidden" name="htmlName" value="${htmlName }"></input>
				</td>
				<td colspan="3">
					<input type="button" value="生成静态的HTML页面"   onclick="checkForm('#recomm_book_form')"/>
				</td>
			</tr>
		</tfoot>
	</table>
</s:form>
</body>
</html>